﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="View.aspx.cs" Inherits="manager_depteval_View" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>验收任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>验收任务
            <small>任务相关</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">考评相关</a></li>
            <li class="active">考评相关</li>
        </ol>
    </section>

    <section class="content">

        <div class="box box-primary">
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#task1" role="tab" data-toggle="tab">考评总表</a></li>
                <li role="presentation"><a href="#task2" role="tab" data-toggle="tab">本人任务</a></li>
                <li role="presentation"><a href="#task3" role="tab" data-toggle="tab">相关任务</a></li>
                <li role="presentation"><a href="#task4" role="tab" data-toggle="tab">特殊考评</a></li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="task1">
                    <div class="box-header with-border">
                        <h3 class="box-title">考评相关</h3>
                    </div>
                    <div class="box-body">
                        <table id="Listask1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-6">考评描述</th>
                                    <th class="col-sm-2">固定任务  总数/得分/总分</th>
                                    <th class="col-sm-2">临时任务  总数/得分/总分</th>
                                    <th class="col-sm-2">考评  得分/总分</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask1" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("eveldeidmc") %></td>
                                            <td><%# Eval("taskGn") %>/<%# Eval("taskGGp") %>/<%# Eval("taskGSp") %></td>
                                            <td><%# Eval("taskLn") %>/<%# Eval("taskLGp") %>/<%# Eval("taskLSp") %></td>
                                            <td><%# Eval("evalGp") %>/<%# Eval("evalSp") %></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task2">
                    <div class="box-header with-border">
                        <h3 class="box-title">本人任务</h3>
                    </div>
                    <div class="box-body">
                        <table id="Listask2" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-6">标题</th>
                                    <th class="col-sm-1">发布者</th>
                                    <th class="col-sm-1">截止日期</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">得分/总分</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask2" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# SQ_Eval_Pub.GetTaskType(Eval("type").ToString()) %> <%# Eval("title") %></td>
                                            <td><%# Eval("fb_username") %></td>
                                            <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToString("yyyy-MM-dd") %></td>
                                            <td><%# SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><b><%# Eval("gp") %>/<%# Eval("sp") %></b></td>
                                            <td><a style="cursor: pointer;" href="/manager/taskfinish/view.aspx?taskid=<%# Eval("ID") %>" target="_blank">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task3">
                    <div class="box-header with-border">
                        <h3 class="box-title">相关任务</h3>
                    </div>
                    <div class="box-body">
                        <table id="Listask3" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-6">标题</th>
                                    <th class="col-sm-1">发布者</th>
                                    <th class="col-sm-1">执行者</th>
                                    <th class="col-sm-1">截止日期</th>
                                    <th class="col-sm-1">状态</th>
                                    <th class="col-sm-1">得分/总分</th>
                                    <th class="col-sm-1">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask3" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# SQ_Eval_Pub.GetTaskType(Eval("type").ToString()) %> <%# Eval("title") %></td>
                                            <td><%# Eval("fb_username") %></td>
                                            <td><%# Eval("zx_psid_userName") %></td>
                                            <td><%# Convert.ToDateTime( Eval("rq_yjs")).ToString("yyyy-MM-dd") %></td>
                                            <td><%# SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                            <td><b><%# Eval("gp") %>/<%# Eval("sp") %></b></td>
                                            <td><a style="cursor: pointer;" href="/manager/taskfinish/view.aspx?taskid=<%# Eval("ID") %>" target="_blank">查看</a></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="task4">
                    <div class="box-header with-border">
                        <h3 class="box-title">特殊考评</h3>
                    </div>
                    <div class="box-body">
                        <table id="Listask4" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="col-sm-7">标题</th>
                                    <th class="col-sm-1">日期</th>
                                    <th class="col-sm-1">扣分</th>
                                    <th class="col-sm-1">执行者</th>
                                

                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rpt_Listask4" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%# Eval("id") %></td>
                                            <td><%# Eval("title") %></td>
                                            <td><%# Eval("rq") %></td>
                                            <td><%# Eval("fz") %></td>
                                            <td><%# Eval("userName") %></td>
                                           
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script>
        $(document).ready(function () {
            $("#Listask1").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask2").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask3").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
            $("#Listask4").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
        });


    </script>
</asp:Content>



